fix: #100 hide simulated user IDs in reviews and use pseudonyms #111
+185
−26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #100
What was done
User.idfromschema.graphqland theAlbumDetailGraphQL query (client/src/api/albumDetail.ts), and regenerated client types (pnpm codegen) so internal simulated user UUIDs are never exposed by the GraphQL API.Listener <uuid-prefix>inserver/src/userIdentity.tswith deterministic SHA-256 music-themed pseudonyms (e.g.Velvet Groove) so the same simulated user always gets a consistent, readable label without revealing any characters of their UUID.publicDisplayName()and updatedReview.userinserver/src/resolvers.tsto omitidand replace legacyListener <8-hex>labels at read time while preserving custom display names.User: { merge: true }to ApolloInMemoryCachetype policies inclient/src/api/client.tsso embeddedUserobjects withoutidmerge cleanly.docs/architecture.md(decision 5),docs/AI-USAGE.md, and server/client tests (server/src/userIdentity.test.ts,server/src/reviews.test.ts,client/src/pages/AlbumDetailPage.test.tsx).What was tested
pnpm codegen && pnpm format:check && pnpm lint && pnpm typecheck && pnpm test && pnpm build— all passed.User.idis rejected, resolver test confirmingReview.useromitsidand upgrades legacy UUID-prefix labels, and pseudonym determinism/privacy unit tests.